/*
 * Copyright (c) 2024 Soon.Liao. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * @Author: soon.liao
 * @Date: 2024-11-02 08:51:27
 * @LastEditors: soon.liao
 * @LastEditTime: 2024-11-02 10:03:02
 * @FilePath: \user\i2c_common\src\i2c_common.c
 * @Description: Create Date : 2024
 * NA
 */
#ifndef IIC_COMMON_H
#define IIC_COMMON_H

#define IIC_READ_WRITE_DELAY_MS 10

int get_tx_done_flag(void);
int get_rx_done_flag(void);
int get_error_flag(void);

void set_tx_done_flag(int val);
void set_rx_done_flag(int val);
void set_error_flag(int val);

#endif